package com.liukai.exam.utils;

/**
 * @author liukai
 * @version 1.0.0
 * @ClassName FileUtil.java
 * @Description TODO
 * @createTime 2021年02月06日 21:25:00
 */
public class FileUtil {

    //上传路径
    public static final String IMG_PATH = "D:\\Projects\\gitClone\\online_exam\\file\\headImg";
    //访问路径
//    public static final String IMG_PATH = projectPath()+"\\images";
    public static final String IMG_URL = "http://image.equip.com/images/";

    /**
     * 获取当前项目路径
     */
    public static String projectPath(){
        String projectPath = System.getProperty("user.dir");
        System.out.println("projectPath==" + projectPath);
        return projectPath;
    }

}
